home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "Module1"
- Global RFile As Boolean
- Global UseZip As Boolean
- Global WState As Long
-
- Public Sub DisplayFile(FilName As String)
- Dim FileCompress As String, FileSize As String, FilePacked As String
- Dim FDate As String, FName As String, Enc As String, Prot As String
- Dim i As Integer, ret As String
- Dim x As ListItem
-
- 'ALWAYS set sourcefile before decompressing/checking out the file
- frmAZPCoDec.ActiveZipperPro1.SourceFile = FilName
- 'Check out the file(s) in the archive by calling different methods
-
-
- dummy = frmAZPCoDec.ActiveZipperPro1.FileName(1) 'Quick Init of archive
- For i = 1 To frmAZPCoDec.ActiveZipperPro1.MaxFiles
-
- 'Find the file's name
- FName = frmAZPCoDec.ActiveZipperPro1.FileName(i)
- Set x = frmAZPCoDec.ListView1.ListItems.Add(, , FName)
-
- 'Find the Compression Ratio
- FileCompress = frmAZPCoDec.ActiveZipperPro1.Ratio(i)
- x.SubItems(1) = FileCompress
-
- 'Find the size of the file after compression
- FilePacked = frmAZPCoDec.ActiveZipperPro1.PackedSize(i)
- x.SubItems(2) = FilePacked
-
- 'Find the size of the file before compression
- FileSize = frmAZPCoDec.ActiveZipperPro1.UnPackedSize(i)
- x.SubItems(3) = FileSize
-
- 'Find out if the archive is protected or not
- Prot = frmAZPCoDec.ActiveZipperPro1.Protected
- x.SubItems(4) = Prot
-
- 'Find out if the archive's files are encrypted or not
- Enc = frmAZPCoDec.ActiveZipperPro1.Garbled(i)
- x.SubItems(5) = Enc
-
- 'Find the Date/time
- FDate = frmAZPCoDec.ActiveZipperPro1.FileDate(i)
- x.SubItems(6) = FDate
-
- Next
-
- End Sub
-
- Public Sub DisplayZipContents(FilName As String)
- Dim FileCompress As String, FileSize As String
- Dim i As Integer, ret As String
- Dim x As ListItem
-
- 'ALWAYS set sourcefile before decompressing/checking out the file
- frmAZPCoDec.ActiveZipperPro1.SourceFile = FilName
- 'Check out the file(s) in the archive by calling different methods
-
-
- For i = 0 To frmAZPCoDec.ActiveZipperPro1.zMaxFiles
-
- 'Find the file's name
- FName = frmAZPCoDec.ActiveZipperPro1.zFileName(i)
- Set x = frmAZPCoDec.ListView1.ListItems.Add(, , FName)
-
- 'Find the size of the file before compression
- FileSize = frmAZPCoDec.ActiveZipperPro1.zFileSize
- x.SubItems(3) = FileSize
-
- 'Find the Date/time
- FDate = frmAZPCoDec.ActiveZipperPro1.zFileDate
- x.SubItems(6) = FDate
-
- Next i
-
- End Sub
-